#define _CRT_SECURE_NO_WARNINGS 1
#include"LIst.h"
void Test()
{
	ListNode* Plist = NULL;
	Plist = CreateList();



	ListPushFront(Plist, 1);
	ListPushFront(Plist, 2);
	ListPushFront(Plist, 3);
	ListPushFront(Plist, 4);
	ListPushFront(Plist, 5);

	ListNode* ret = NULL;

	ret = ListFind(Plist, 3);
	ListInsert(ret, 55);
	ListPrint(Plist);


	ret = ListFind(Plist, 4);
	ListInsert(ret, 99);
	ListPrint(Plist);

	ret = ListFind(Plist, 99);
	ListErase(ret);
	ListPrint(Plist);

	
	ret = ListFind(Plist, 5);
	ListErase(ret);
	ListPrint(Plist);

	ret = ListFind(Plist, 4);
	ListErase(ret);
	ListPrint(Plist);


	ListDestory(Plist);
	
}

int main()
{
	Test();
	return 0;
}